package com.sf.marathon.soul.controller;

import com.sf.marathon.soul.domain.ExpressGroup;
import com.sf.marathon.soul.service.ExpressGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sf.marathon.soul.core.base.BaseController;
import com.sf.marathon.soul.core.constant.Constans;
import com.sf.marathon.soul.domain.SenderGroupRelation;
import com.sf.marathon.soul.vo.SenderGroupVO;
import com.sf.marathon.soul.service.SenderGroupRelationService;

/**
 * <p>
 * 寄件人与报名团关系 前端控制器
 * </p>
 *
 * @author mokeo
 * @since 2017-12-15
 */
@Controller
@RequestMapping("/senderGroupRelation")
public class SenderGroupRelationController extends BaseController<SenderGroupRelation> {
    @Autowired
    private SenderGroupRelationService service;



    @Override
    protected void init() {
        baseService = service;
        setMainVOClazz(null);
    }

    @RequestMapping("/join")
    @ResponseBody
    public String join(SenderGroupVO vo) {
        service.join(vo);
        return Constans.SUCCESS;
    }

}
